﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using STT.Business;
using STT.Entities;
using STT.Layer.Connection;
using System.Data;
using System.IO;
namespace STT.Report
{
    public partial class DSDiemHVAdmin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                DataTable dt = BTbTKB.TbTKB_SelectByMaGVMaMHMaLopExport(Request.QueryString["mg"].ToString().Trim(),
                              Request.QueryString["ml"].ToString().Trim(), Request.QueryString["mm"].ToString().Trim());
              
                rpvDSDAdmin.Visible = true;
                rpvDSDAdmin.LocalReport.ReportPath = "RDLC\\DSDiemHVAdmin.rdlc";
                rpvDSDAdmin.LocalReport.DataSources.Clear();
                rpvDSDAdmin.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", dt));
            }
        }
    }
}